package com.yc.common.expection;

import com.yc.common.enums.ResultCode;

import java.io.Serializable;

/**
 * @Classname UserPasswordNotMatchException
 * @Description 用户密码不正确或不符合规范异常类
 * @Version 1.0.0
 * @Date 2022/8/9 11:28
 * @Created by Mikechen
 */
public class UserPasswordNotMatchException extends BaseException implements Serializable {
    private static final long serialVersionUID = 1L;
    public UserPasswordNotMatchException(String msg) {
        this.msg = msg;
        this.code = ResultCode.BUSINESS_ERROR.getCode();
    }
    public UserPasswordNotMatchException() {
        this.msg = ResultCode.LOGIN_ERROR.getMsg();
        this.code = ResultCode.LOGIN_ERROR.getCode();
    }
}
